//
//  M1MacroBasic.h
//  NewMarryU
//
//  Created by Cedar on 2018/7/10.
//  Copyright © 2018年 Cedar. All rights reserved.
//

#ifndef M1MacroBasic_h
#define M1MacroBasic_h

#define SCREENHEIGHT [UIScreen mainScreen].bounds.size.height

#define SCREENWIDTH [UIScreen mainScreen].bounds.size.width
/*****************  弱引用  ******************/
#define WEAKSELF __weak typeof(self) weakSelf = self;


/**
 * 分页数据每页条数
 */
#define TABLE_PAGE_SIZE 10
/**
 *  加载本地图片
 */
#define LOAD_LOCAL_IMG(imgName)   [UIImage imageNamed:imgName]

/**************** 常用数据 ****************/
#define STATUS_HEIGHT (SCREENHEIGHT == 812 ?  44 : 20)
/**
 *  系统默认底部标签栏高度
 */
#define TAB_HEIGHT  (SCREENHEIGHT == 812 ? 83 : 49)
#define iPhone4 ([UIScreen mainScreen].bounds.size.height==480.0)
#define iPhoneX ([UIScreen mainScreen].bounds.size.height==812.0)
#define iPhone5 ([UIScreen mainScreen].bounds.size.width==320.0)
#define iPhone6 ([UIScreen mainScreen].bounds.size.width==375.0)
#endif /* M1MacroBasic_h */
